<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>user list</title>
</head>
<body>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="guoli/user/list" target="navTab" rel="userlist"><span>show</span></a></li>
				<li><a class="add" href="guoli/user/add" target="dialog" rel="useradd"><span>add</span></a></li>
			</ul>
		</div>
		<table class="table" width="99%" layoutH="76">
			<thead>
				<tr>
					<th>no</th>
					<th>name</th>
					<th>pswd</th>
					<th>opt</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${users.data}" var="user" varStatus="i">
					<tr>
						<td>${i.count }</td>
						<td>${user.name }</td>
						<td>${user.password }</td>
						<td><a target="dialog" ref="userupdate" href="guoli/user/${user.id }/update">update</a>&nbsp;|&nbsp;
							<a href="guoli/user/${user.id }/delete" target="ajaxTodo" title="sure?">delete</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="20">20</option>
					<option value="50">50</option>
				</select>
				<span>条，共${users.total }条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${users.total }" numPerPage="20" pageNumShown="10" currentPage="1"></div>
		</div>
	</div>
</body>
</html>